<template>
  <div class="app-container">
    <analyze></analyze>
    <el-tabs v-model="staffActiveName" type="border-card">
      <el-tab-pane label="人员消耗" name="0">
        <staff-consumption v-if="staffActiveName == 0"></staff-consumption>
      </el-tab-pane>
      <el-tab-pane label="项目消耗" name="1">
        <project-consumption v-if="staffActiveName == 1"></project-consumption>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import staffConsumption from './staffConsumption.vue';
import projectConsumption from './projectConsumption.vue';
export default {
  name: "Staff",
  components: {
    staffConsumption,
    projectConsumption
  },
  data() {
    return {
      // tab切换值
      staffActiveName: '0',
    };
  },
  created() {
  },
  methods: {
  }
};
</script>
